Generalize distributed PyTorch training example #588
+1,354
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a new example demonstrating distributed training with PyTorch's Distributed Data Parallel (DDP) on Kubernetes. The example showcases multi-node, multi-GPU training using Kubernetes Jobs with comprehensive support for major cloud providers (GKE, EKS, AKS) and on-premises deployments.
What This Example Demonstrates
completionMode: IndexedKey Features
1. Distributed Training Setup
2. Kubernetes Resources
3. Multi-Cloud and On-Premises Support
4. Training Script
Files Included
training-job.yaml- Main Kubernetes Job configurationtrain.py- PyTorch DDP training scripttraining-script-configmap.yaml- Training script as ConfigMapservice.yaml- Headless Service for pod communicationdata-pvc.yaml/output-pvc.yaml- Persistent storagetrain-config.yaml- Training hyperparametersworkload.yaml- Workload-aware scheduling configurationkustomization.yaml- Kustomize base configurationREADME.md- Comprehensive documentation